<?php
if (!defined('BASEPATH')) {
	exit('No direct script access allowed');
}

class Clients extends CI_Controller {

	function __construct() {
		parent::__construct();
		$this->load->library('parser');
		$this->load->model('m_klien');
	}

	function index() {
		$this->load->helper('options');
		// lebih jelasnya liat helper options
		$this->load->helper('id_date');
		// lebih jelasnya liat helper options
		$this->parser->set_title('Clients');
		$this->parser->set_desc('Index klien Pilar Teknotama');

		//ambil berita
		$this->load->library('paging');                         	
		$config['sql']      				= $this->m_klien->get();
		$config['per_page'] 				= 8;
		$data = $this->paging->create_pagination($config);

		$this->parser->theme('front','clients/index', $data);
	}
}